package org.systm.adminuser.service;

import org.global.basic.BaseServiceOpImpl;
import org.global.basic.CurdFindRepository;
import org.springframework.stereotype.Service;
import org.systm.adminuser.dao.UserPermissionStore;
import org.systm.adminuser.entity.UserPermission;
import org.systm.adminuser.params.UserPermissionParams;
import javax.annotation.Resource;
import javax.persistence.EntityManager;

@Service
public class UserPermissionService extends BaseServiceOpImpl<UserPermission, String, UserPermissionParams<String>> {
    @Resource
    UserPermissionStore userPermissionStore;

    @Resource
    EntityManager entityManager;

    @Override
    public CurdFindRepository<UserPermission, String> repository() {
        return this.userPermissionStore;
    }

    @Override
    public EntityManager entityManger() {
        return this.entityManager;
    }
}
